/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ddd.service;

import javax.servlet.http.HttpServletRequest;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class BaseService {

    protected Log logger = LogFactory.getLog(this.getClass());
    protected HttpServletRequest request;
    /*
    protected HttpServletRequest request;
    protected String username;
    protected String ip;
    protected String currentPage;
    protected String pageSize;
    protected String totalPage;
    
    public BaseService(HttpServletRequest request) {
    this.request = request;
    
    if (request != null) {
    HttpSession session = request.getSession();
    username = (String) session.getAttribute("username");
    ip = request.getRemoteAddr();
    }
    }
    
    public String getCurrentPage() {
    return currentPage;
    }
    
    public void setCurrentPage(String currentPage) {
    this.currentPage = currentPage;
    }
    
    public String getIp() {
    return ip;
    }
    
    public void setIp(String ip) {
    this.ip = ip;
    }
    
    public Log getLogger() {
    return logger;
    }
    
    public void setLogger(Log logger) {
    this.logger = logger;
    }
    
    public String getPageSize() {
    return pageSize;
    }
    
    public void setPageSize(String pageSize) {
    this.pageSize = pageSize;
    }
    
    public HttpServletRequest getRequest() {
    return request;
    }
    
    public void setRequest(HttpServletRequest request) {
    this.request = request;
    }
    
    public String getTotalPage() {
    return totalPage;
    }
    
    public void setTotalPage(String totalPage) {
    this.totalPage = totalPage;
    }
    
    public String getUsername() {
    return username;
    }
    
    public void setUsername(String username) {
    this.username = username;
    }
    
     */
}
